#define _CRT_SECURE_NO_WARNINGS 1
class Solution {
public:
    int findLengthOfLCIS(vector<int>& nums) {
        int ret = 0, cur = 1;
        for (int i = 1; i < nums.size(); i++)
        {
            if (nums[i] > nums[i - 1]) cur++;
            else ret = max(ret, cur), cur = 1;
        }
        ret = max(ret, cur);
        return ret;
    }
};